<template>
  <div>
    <el-dialog :title="formtype==1?'新增联系人':'编辑联系人'" width='460px' :visible.sync="dialogFormVisible">
  <el-form :model="form" label-position='left'>
    <el-form-item label="职务" :label-width="formLabelWidth">
      <el-input class="input_border_bottom" v-model="form.name" placeholder="请输入职务" auto-complete="off"></el-input>
    </el-form-item>
    <el-form-item label="姓名" :label-width="formLabelWidth">
      <el-input class="input_border_bottom" v-model="form.name" placeholder="请输入姓名" auto-complete="off"></el-input>
    </el-form-item>
    <el-form-item label="联系电话" :label-width="formLabelWidth">
      <el-input class="input_border_bottom" v-model="form.name" placeholder="请输入联系电话" auto-complete="off"></el-input>
    </el-form-item>
    <el-form-item label="负责事项" :label-width="formLabelWidth">
      <el-input class="input_border_bottom" v-model="form.name" placeholder="请输入负责事项" auto-complete="off"></el-input>
    </el-form-item>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button @click="dialogFormVisible = false">取 消</el-button>
    <el-button type="primary" @click="commit">确 定</el-button>
  </div>
</el-dialog>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        dialogFormVisible:false,
        formtype:1,
        formLabelWidth:'80px',
        form:{
          name:'',
          region:'',
        }
      }
    },
    methods: {
      commit(){
        this.dialogFormVisible=false
      },
    },
  }
</script>

<style lang="less" scoped>

</style>